import threading
import time


def job(name):
    while True:
        print(name)
        time.sleep(1)


def main():
    t1 = threading.Thread(target=job, args=("job1",))
    t1.setDaemon(True)
    t1.start()

    while True:
        print("mainThread: ---")
        time.sleep(0.5)


if __name__ == '__main__':
    main()